#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "fdfs_api.h"

// gcc main.c  make_log.c   fdfs_api.c  -I  /usr/include/fastdfs/  -I  /usr/include/fastcommon/ -lfdfsclient  

//  fileID = group1/M00/00/00/wKhLgGenYZKAfIZwAAACYQqG-mQ17054.h
int main(int argc, char* argv[])
{
    char fileid[1024] = {0};
    // argv[1]  文件名
    fdfs_upload_file("/etc/fdfs/client.conf", argv[1], fileid);
    printf("fileID = %s\n", fileid);
}
